import request from '@/utils/request'

// 查询体测原始数据列表
export function listTcdevicedata(query) {
  return request({
    url: '/tc/tcdevicedata/list',
    method: 'get',
    params: query
  })
}

// 查询体测原始数据详细
export function getTcdevicedata(id) {
  return request({
    url: '/tc/tcdevicedata/' + id,
    method: 'get'
  })
}

// 新增体测原始数据
export function addTcdevicedata(data) {
  return request({
    url: '/tc/tcdevicedata',
    method: 'post',
    data: data
  })
}

// 修改体测原始数据
export function updateTcdevicedata(data) {
  return request({
    url: '/tc/tcdevicedata',
    method: 'put',
    data: data
  })
}

// 删除体测原始数据
export function delTcdevicedata(id) {
  return request({
    url: '/tc/tcdevicedata/' + id,
    method: 'delete'
  })
}

// 计算体测数据
export function count(data) {
  return request({
    url: '/tc/tcdevicedata/count',
    method: 'post',
    data: data
  })
}
